package com.appwoo.txtws.adapter;

import android.app.Activity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import com.appwoo.txtws.bean.SoftTypeBean;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class SoftTypeAdapter extends ArrayAdapter<SoftTypeBean>
{
  private Map<Integer, View> viewMap = new HashMap();

  public SoftTypeAdapter(Activity paramActivity, List<SoftTypeBean> paramList)
  {
    super(paramActivity, 0, paramList);
  }

  public View getView(int paramInt, View paramView, ViewGroup paramViewGroup)
  {
    View localView = (View)this.viewMap.get(Integer.valueOf(paramInt));
    if (localView == null)
    {
      localView = ((Activity)getContext()).getLayoutInflater().inflate(2130903126, null);
      SoftTypeBean localSoftTypeBean = (SoftTypeBean)getItem(paramInt);
      TextView localTextView = (TextView)localView.findViewById(2131493172);
      localTextView.setText(localSoftTypeBean.getTypeName());
      localTextView.setTag(localSoftTypeBean.getTypeID());
      this.viewMap.put(Integer.valueOf(paramInt), localView);
    }
    return localView;
  }
}

/* Location:           C:\Documents and Settings\Administrator\classes_dex2jar.jar
 * Qualified Name:     com.appwoo.txtws.adapter.SoftTypeAdapter
 * JD-Core Version:    0.6.2
 */